-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check v before ecrecover #105
Conversation
Codecov Report
@@ Coverage Diff @@
## master #105 +/- ##
==========================================
+ Coverage 84.17% 84.19% +0.01%
==========================================
Files 12 12
Lines 910 911 +1
==========================================
+ Hits 766 767 +1
Misses 144 144
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #105 +/- ##
==========================================
+ Coverage 84.17% 84.19% +0.01%
==========================================
Files 12 12
Lines 910 911 +1
==========================================
+ Hits 766 767 +1
Misses 144 144
Continue to review full report at Codecov.
|
const signer = Input.recoverSignerAddress(sigHashBuf, v, r, s); | ||
|
||
input.setSig(r, s, v, signer); | ||
if (v > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we just want to check v
here? I assume we should check r
and s
to equals 0, too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hack 🌮
resolves #104
maybe also #102